package com.kkwrite.regimen.provider.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by lisha on 2018/7/11 20:10.
 *
 * @author lisha
 */
@Entity
@Table(name = "reg_user")
@Getter
@Setter
@ToString(callSuper = true)
public class RegUserDO extends BaseDO {
    private static final long serialVersionUID = 3671466482266947178L;

    @Id
    @Column(name = "user_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer userId;
    @Column(name = "account", length = 100, nullable = false)
    private String account;
    @Column(name = "gender")
    private Integer gender;
    @Column(name = "phone_num", length = 30)
    private String phoneNum;
    @Column(name = "email", length = 150)
    private String email;
    @Column(name = "open_id", length = 50, nullable = false, unique = true)
    private String openId;
    @Column(name = "nickname", length = 30)
    private String nickName;
    @Column(name = "avatar_url")
    private String avatarUrl;
    @Column(name = "username_cn", length = 200)
    private String usernameCn;
    @Column(name = "username_en", length = 200)
    private String usernameEn;
    @Column(name = "password", length = 50)
    private String password;
    @Column(name = "user_type")
    private Integer userType;
    @Column(name = "user_level")
    private Integer userLevel;
    @Column(name = "user_score")
    private Integer userScore;
    @Column(name = "language")
    private Integer language;
    @Column(name = "country", length = 20)
    private String country;
    @Column(name = "province", length = 20)
    private String province;
    @Column(name = "city", length = 20)
    private String city;
    private Integer inviteFlag;
    private Long inviterId;
    @Column(name = "invite_qrcode_path", length = 120)
    private String inviteQrcodePath;

}
